using NUnit.Framework;
using System.Collections.Generic;

namespace Flit.Tests
{
    [TestFixture]
    public class LabelTest
    {
        Label l;

        [SetUp]
        public void Setup()
        {
            l = new Label
                    {
                        Name = "foo",
                        Parameters = new List<Parameter>()
                                         {
                                             new Parameter("int", "bar"),
                                             new Parameter("string", "s"),
                                         }
                    };
        }

        [Test]
        public void TestParametersAsFormalMethodDefinition()
        {
            Assert.AreEqual("int bar, string s", l.ParametersAsFormalMethodDefinition);
        }

        [Test]
        public void TestParametersAsMethodCall()
        {
            Assert.AreEqual("bar, s", l.ParametersAsMethodCall);
        }
    }
}